package com.study.opensource.spring.enable.controller;

import com.study.opensource.spring.enable.service.IBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author xubangbang
 * @date 2021/8/5 13:42
 */
public class BaseController<T> {

    @Autowired
    private IBaseService<T> baseService;

    @GetMapping("/list")
    public List<T> list(String param){
        return baseService.list(param);
    }
}
